/*
 *  exception.h
 *  SoundController0002
 *
 *  Created by jiro on 10/08/22.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#pragma once

#include <string>

namespace sc
{
	class Exception : std::exception
	{
	public:
		
		Exception( const char* msg )
		{
			message = msg;
		}

		Exception( const std::string& s  )
		{
			message = s;
		}
		
		virtual ~Exception() throw()
		{}
		
		const char* what() const throw()
		{
			return message.c_str();
		}
		
	private:
	
		std::string message;
	};
}